Package-level declarations

Types

Link copied to clipboard
typealias EntityMerge = Merge<SuggestedEntityResolution, <Error class: unknown class>>
Link copied to clipboard

Determine how to handle existing entities. The EntityResolver will have determined where we have an existing entity. The role of the EntityDeterminer is to decide how to handle merges.

Link copied to clipboard
Link copied to clipboard

Updates a knowledge graph from chunks of text

Link copied to clipboard
data class KnowledgeGraphDelta(val chunkIds: Set<String>, val entityMerges: Merges<SuggestedEntityResolution, <Error class: unknown class>>, val relationshipMerges: Merges<SuggestedRelationshipResolution, RelationshipInstance>)

Update we'll apply to a knowledge graph in a persistent store. Identifies the chunks that it is based on.

Link copied to clipboard
data class Merge<R : Resolution<*, T>, T>(val resolution: R, val convergenceTarget: T?)

Convergence between a resolution, with an ultimate convergence target that we can write a store, whether persistent or in memory.

Link copied to clipboard
data class Merges<R : Resolution<*, T>, T>(val merges: List<Merge<R, T>>)
Link copied to clipboard
Link copied to clipboard

Relationship between a source and target entity, identified by ID

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface SourceAnalyzer

Analyze text Process each chunk in turn. Not responsible for disambiguation or merging, which is handled by a later pipeline stage.

Link copied to clipboard
Link copied to clipboard
data class SuggestedRelationship(val sourceId: String, val targetId: String, val type: String, val description: String? = null) : RelationshipInstance
Link copied to clipboard
data class SuggestedRelationships(val entitiesResolution: Resolutions<SuggestedEntityResolution>, val suggestedRelationships: List<SuggestedRelationship>)